<a href="<?php echo site_url('admin/pelajaran/tambah') ?>" class="btn btn-info btn-rounded"><i class="iconfa-plus"></i> Tambah Pelajaran</a>
<br/>
<br/>
<h4 class="widgettitle nomargin shadowed">Data Pelajaran</h4>
<table class="table table-bordered" id="dyntable">
    <colgroup>
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
    </colgroup>
    <thead>
        <tr>
            <th class="head0">Nomor</th>
            <th class="head1">Nama Pelajaran</th>
            <th class="head0">Nama Pengajar</th>
            <th class="head0">Nilai Minimal Lulus</th>
            <th class="head1">Keterangan</th>
            <th class="head0">Option</th>
        </tr>
    </thead>
    <tbody>
        <?php
		$nomor = 0;
        foreach ($rslt_data_pelajaran->result() as $value_data_kelas)
        {	
			$nomor++;
            echo '<tr>';
            echo '<td>' . $nomor . '</td>';
            echo '<td>' . $value_data_kelas->nama_pelajaran . '</td>';
            echo '<td>' . $value_data_kelas->nama_guru . '</td>';
            echo '<td>' . $value_data_kelas->nilai_min . '</td>';
            echo '<td>' . $value_data_kelas->keterangan . '</td>';
            echo '<td><center>
			<a href="' . base_url('admin/pelajaran/edit/' . $value_data_kelas->id) . '" title="ubah"><i class="iconsweets-create"></i></a> | 
                    <a href="' . base_url('admin/pelajaran/hapus/' . $value_data_kelas->id) . '" title="hapus"><i class="iconsweets-trashcan"></i></a>
					</center></td>';
            echo '</tr>';
        }
        ?>
    </tbody>
</table>